<template>
  <div>
    <h3>sonone</h3>
    <h1>{{ jiachan }}</h1>
    <h2>{{ msg }}</h2>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "我是sonOne",
    };
  },
  //   注入
  inject: ["jiachan", "msg"],
};
</script>

<style lang="scss" scoped>
</style>